The _c_p_u_s_e_t_M_o_v_e function is used to temporarily move processes associated
with an ID, identified by _iiii_dddd from one cpuset to another. This function
does not move the memory associated with the processes. This function
should be used in conjuction with _cccc_pppp_uuuu_ssss_eeee_tttt_MMMM_oooo_vvvv_eeee_MMMM_iiii_gggg_rrrr_aaaa_tttt_eeee.
The _ffff_rrrr_oooo_mmmm______qqqq_nnnn_aaaa_mmmm_eeee argument is the name of the cpuset from which the
processes are moved. Using a NULL for this argument will result in having
all the processes identified by _iiii_dddd to be move into the global cpuset.
The global cpuset is a term used to describe all the CPUS that are not in
a cpuset.
The _tttt_oooo______qqqq_nnnn_aaaa_mmmm_eeee argument is the name of the destination cpuset for the
specified ID. Using a NULL for this argument will result in having all
the processes identified by _iiii_dddd to be moved into the global cpuset.
The _iiii_dddd_TTTT_yyyy_pppp_eeee argument defines the type of number passed in as _iiii_dddd. The
possible options for _iiii_dddd_TTTT_yyyy_pppp_eeee are _CCCC_PPPP_UUUU_SSSS_EEEE_TTTT______PPPP_IIII_DDDD (Process ID), _CCCC_PPPP_UUUU_SSSS_EEEE_TTTT______AAAA_SSSS_HHHH
(Array Session Handle), _CCCC_PPPP_UUUU_SSSS_EEEE_TTTT______PPPP_GGGG_IIII_DDDD (Process Group ID), _CCCC_PPPP_UUUU_SSSS_EEEE_TTTT______SSSS_IIII_DDDD
(Session ID), and _CCCC_PPPP_UUUU_SSSS_EEEE_TTTT______JJJJ_IIII_DDDD (Job ID). The use of _CCCC_PPPP_UUUU_SSSS_EEEE_TTTT______JJJJ_IIII_DDDD will result
in an ENOPKG error on systems running the IRIX maintenance stream, or
those running the IRIX feature stream but without the job limits package
installed.
This function requires the processes associated with _iiii_dddd to be stopped
before it can enact the move. A test is made to see if all the processes
are stopped. If _iiii_dddd has processes A, B, and C and B is stopped, A and C
will be stopped. Then, after the move, A and C will be restarted (but not
B).
This function requires root privileges on standard IRIX, and
CAP_SCHED_MGMT on Trusted IRIX (TRIX).
EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
This example moves a process ID from the cpuset queue named mpi_set to